package s_004_Bean_Automatic_Assembly.controller;

import org.springframework.stereotype.Controller;
import s_004_Bean_Automatic_Assembly.dao.BookDao;
import s_004_Bean_Automatic_Assembly.service.BookService;

import javax.annotation.Resource;
import javax.inject.Inject;

/**
 * @Controller 名字默认是类名首字母小写
 */
@Controller
public class BookController {

	@Resource(name = "bookService")
    private BookService bookService;

    @Inject
    private BookDao bookDao;
}